						</div>
						<div id="sidebar">
							<ul class="menu">
								{foreach $allGroups as $gr}
									{if $gr->nestingDepth() == 0}
										{if $gr@index>0}
												</ul>
											</li>
										{/if}
										<li>
											<a href="/group.php?groupId={$gr->id()}" class='group_{$gr->code()}'>{$gr->name()}</a>
											<ul>
									{elseif $gr->nestingDepth() == 1}
										<li>
											<a href="/group.php?groupId={$gr->id()}" {if $gr->image()}style="background-image:url({thumbnail width=70 height=37}{$gr->image()}{/thumbnail});"{/if}>
												{$gr->name()}
											</a>
										</li>
									{/if}
								{/foreach}
									</ul>
								</li>
							</ul>
						</div>
					</div>
					<div class="container-yg">
						<div class="container-yg-holder">
							<div class="container-yg-frame">
								<h2>СТАТЬИ</h2>
								<ul class="article-list">
									{foreach $articleAnnounces as $announce}
										{if $announce@index == 5}
											</ul>
											<ul class="article-list">
										{/if}
											<li>
												<a href="/article.php?articleId={$announce.id}">
													{if $announce.text}{$announce.text}{else}{$announce.title}{/if}
												</a>
											</li>
									{/foreach}
								</ul>
							</div>
						</div>
					</div>
					<div class="section">
						<div class="blocks">
							<h2>ФОТО</h2>
							<div class="block">
								<div class="img-block">
									<a href="/album.php?albumId={$randomPhoto.albumId}">
										<img src="{$randomPhoto.image->url()}" alt="{$randomPhoto.name}" title="{$randomPhoto.name}" />
									</a>
								</div>
								<a href="/album.php?albumId={$randomPhoto.albumId}">{$randomPhoto.name}</a>
							</div>
						</div>
						<div class="blocks">
							<h2>ВИДЕО</h2>
							<div class="block">
								<div class="video-block">
									<a href="/video.php#{$randomVideo.id}">
										{$randomVideo.descr}
									</a>
								</div>
								<a href="/video.php#{$randomVideo.id}">{$randomVideo.name}</a>
							</div>
						</div>
					</div>
					{if $templateName == 'index'}
						<div class="container-w">
						<div class="container-w-holder">
							<div class="container-w-frame">
								<h2>{$title}</h2>
								{$page->text()}
							</div>
						</div>
					</div>
						<div class="section">
						<div class="section-holder">
							<h2>КАТАЛОГ</h2>
							{foreach $allGroups as $gr}
								{if $gr->nestingDepth() == 0}
									</ul>
									<h3>{$gr->name()}</h3>
									<ul class="topiclist">
								{elseif $gr->nestingDepth() == 1}
									<li>
										<a href="/group.php?groupId={$gr->id()}">
											{if $gr->image()}
												<img src="{thumbnail width=100 height=100}{$gr->image()}{/thumbnail}"/><br>
											{/if}
											{$gr->name()}
										</a>
									</li>
								{/if}
							{/foreach}
						</div>
					</div>
					{/if}
				</div>
			</div>
		</div>
		<div id="footer">
			<div class="footer-holder">
				<ul class="navigation">
					<li><a href="/group.php?groupId=2">НАДУВНЫЕ ЛОДКИ ПВХ ДЛЯ РЫБАЛКИ YUKONA, HDX, SEA-PRO, TOHATSU, NISSAMARAN</a>
					<a href="/group.php?groupId=64">ЛОДОЧНЫЕ МОТОРЫ: YAMAHA, HDX, MERCURY, TOHATSU, SEA-PRO, NISSAN MARINE</a></li>
				</ul>
				<p class="copyright">&copy; 2008-2014 <a href="#">www.lodki-palatki.ru</a>. All rights reserved</p>
				<dl class="seadesing">
					<dt>СОЗДАНИЕ САЙТА</dt>
					<dd><a href="http://www.seadesign.ru">SeaDesing</a></dd>
				</dl>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	</script>
	<script type="text/javascript">
	var pageTracker = _gat._getTracker("UA-4895753-2");
	pageTracker._initData();
	pageTracker._trackPageview();
	</script>
</body>
</html>